package cn.tedu.spring.auto;

import cn.tedu.spring.example.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserCatch {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.auto");
        UserCatch userCatch = context.getBean(UserCatch.class);
        System.out.println(userCatch);
    }
}
